package lmteam.commservice;


import org.junit.Test;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertEquals;


public class CommServiceProcessorTest
{
    private static String[] receivers_names = { "person1", "person5", "person6", "who" };
    private static String[] receivers_addrs = { "person1@fakesystem.com", "p5@fakesystem.com", "per6@fakesystem.com", "thewho@fakesystem.com" };


    @Test
    public void testsendForReview()
	throws java.rmi.RemoteException
    {
	CommServiceProcessor csp = new CommServiceProcessor();
	
	assertTrue( csp.sendForReview( "someone", "someone@fakesystem.com", receivers_names, receivers_addrs, "unknown document", "hello" ) );
    }


    @Test
    public void testsendComment()
	throws java.rmi.RemoteException
    {
	CommServiceProcessor csp = new CommServiceProcessor();
	
	assertTrue( csp.sendComment( "someone", "someone@fakesystem.com", receivers_names[1], receivers_addrs[2], "my document", "" ) );
    }

    @Test
    public void testsendCommentResponse()
	throws java.rmi.RemoteException
    {
	CommServiceProcessor csp = new CommServiceProcessor();
	
	assertTrue( csp.sendCommentResponse( "someone", "someone@fakesystem.com", receivers_names[1], receivers_addrs[2], "my document", "" ) );
    }
    
    @Test
    public void testsendGeneralEmail()
	throws java.rmi.RemoteException
    {
	CommServiceProcessor csp = new CommServiceProcessor();
	
	assertTrue( csp.sendGeneralEmail( "someone", "someone@fakesystem.com", receivers_names, receivers_addrs, "unknown document", "we got a test body here." ) );
    }

}